package com.scalar.chiptrack.operations.dataentry.rmaReceive.actioncommands;

import com.scalar.chiptrack.actioncommands.ActionCommand;


/**
 * User: ChandraSekhar
 * Date: Aug 22, 2008
 * Time: 1:52:28 PM
 */
public class RMAReceiveActionCommandFactory 
{

    private RMAReceiveActionCommandFactory()
    {
    }

    public static ActionCommand getActionCommand(String action)
    {
        if (action == null || "allCustomers".equalsIgnoreCase(action) )
        {
            return new RMAReceiveLoadCustomersCommand();
        }
       else if ("rmaLots".equalsIgnoreCase(action))
        {
            return new RMAReceiveLoadRmaLotsCommand();
        }
        else if ("loadLotInfo".equalsIgnoreCase(action))
        {
            return new RMAReceiveLotDetailsCommand();
        }
        else if ("save".equalsIgnoreCase(action) || "confirm".equalsIgnoreCase(action) )
        {
            return new RMAReceiveSaveCommand();
        }
        else if ("receiveReport".equalsIgnoreCase(action) || "receiveReportExcel".equalsIgnoreCase(action) )
        {
            return new RMAReceiveReportCommand();
        }

        return null;
    }
}